#pragma once

#include <iostream>
#include <vector>
#include <memory>
#include <fstream>
#include <sstream>
#include "user.h"

#define UserInfoFile "info/user.txt"


class UserManager
{
private:
    std::vector<std::shared_ptr<User>> userLib;
public:

    std::vector<std::shared_ptr<User>>& getUserLib() { return this->userLib; }

    int load_UserFromFile();
    int save_UserToFile();
    std::shared_ptr<User> login_verification(const std::string& name, const std::string& password);
    int user_register(const std::string& name,const std::string& password);

};